package com.he.DesignPatterns.visit;

/**
 * @description: TODO
 * @Author: HCL
 * @Date: 2024/10/11 16:42
 */
public class Client {

    public static void main(String[] args) {
        Home home = new Home();
        home.add(new Cat());
        home.add(new Dog());

        Owner owner = new Owner();
        home.action(owner);
        System.out.println("==============");
        Someone someone = new Someone();
        home.action(someone);

    }
}
